package com.huixuebao.after.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huixuebao.after.dto.AfterUserDTO;
import com.huixuebao.after.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {
    /**
     * 查询用户分页信息
     * @param page
     * @return
     */
    IPage<AfterUserDTO> selectAfterUser(IPage<AfterUserDTO> page,@Param("params") Map<String,Object> map);

    /**
     * 查询用户list信息
     * @return
     */
    List<AfterUserDTO> selectAfterUserList(@Param("params") Map<String,Object> map);

}
